package pers.jphoebe.quartz.utils;

import java.io.PrintWriter;
import java.io.StringWriter;

/**
 * Created by 蒋时华 on 2017/9/1.
 */
public class StackTraceUtils {

    public static String getStackTraceStr(Exception e){
        e.printStackTrace();
        StringWriter sw = new StringWriter();
        e.printStackTrace(new PrintWriter(sw, true));
        return sw.toString();
    }
}
